﻿@using Think.Lenovo.Com.Models;
@using Think.Lenovo.Com.Common;
<html>
<head>
    <link href="/Contents/css/skin.css" rel="stylesheet" type="text/css" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="Cache-Control" content="no" />
    <link rel="stylesheet" type="text/css" href="/Contents/resources/css/reset.css" />
    <link rel="stylesheet" type="text/css" href="/Contents/resources/css/style.css" media="screen" />
    <link id="color" rel="stylesheet" type="text/css" href="/Contents/resources/css/colors/blue.css" />
    <script type="text/javascript" src="/Scripts/lib/jquery-1.4.4.min.js"></script>
    <script type="text/javascript" src="/Scripts/ViewListReport.js"></script>
</head>
<body>
    <div id="content" style="background: url(/Contents/resources/images/background.png);">
        <!-- content / right -->
        <div id="right">
            <!-- table -->
            <div class="box">
                <!-- box / title -->
                <div class="title">
                    <h5>
                        上传报表</h5>
                </div>
                <div class="table">
                    <div id="step1" class="">
                        <table>
                            <tr>
                                <td>
                                    模板名称
                                </td>
                                <td>
                                    报表上传日期
                                </td>
                                <td>
                                    报表上传者
                                </td>
                                <td>
                                    操作
                                </td>
                            </tr>
                            @{
                                foreach (UserDataReportInfoModel m in ViewBag.List)
                                {
                                <tr>
                                    <td>
                                        @m.TemplateName
                                    </td>
                                    <td>
                                        @m.UploadDate
                                    </td>
                                    <td>
                                        @m.UploadeUserName
                                    </td>
                                    <td>
                                        <a href="/DataReport/DownLoadDataReport/@m.Id">下载</a>
                                    </td>
                                </tr>
                                } 
                            }
                        </table>
                        <table>
                            @foreach (PageNumberModel m in ViewBag.Pager)
                            {
                                if (!m.IsCurrentPage)
                                {
                                <a href="@m.PageLink">[@m.PageNum]</a>
                                }
                                else
                                {
                                @m.PageNum;
                                }
                            }
                            <tr>
                            </tr>
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </div>
</body>
</html>
